<?php
require_once(dirname(__FILE__).'/../include/db_mysql.php');

function is_party_emailaccount_reg( $email_account )
{
	$sql = new SqlClass;

	//连接数据库
	$sql->connect();


	//执行sql语句

	//检验用户名是否已被注册
    $sql_command = "SELECT * FROM `user` where email='$email_account';";
    $r = $sql->exec_sql( $sql_command );
	$sql->close();
	$row = mysql_fetch_array($r);
	if( $row != '' )  //说明该用户名已被注册
	{
		return true;
	}
	else
	{	
		return false;
	}


}


?>